package com.udi.project.business.local.gs1.service;


import com.udi.project.business.local.gs1.daomain.AvailableGs1;
import com.udi.project.business.local.gs1.domain.BeUsable;
import com.udi.project.business.local.gs1.domain.Gs1Data;
import com.udi.project.business.local.gs1.domain.SelGsMesVo;
import com.udi.project.business.pojo.damain.Gs1Udi;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Admin
 */
public interface Gs1MangeService {

    /**
     * 根据id查询udi信息
     * @param id
     * @return java.util.List<com.udi.project.business.local.gs1.domain.SelGsMesVo>
     * @author yuxin
     * @creed: Talk is cheap,show me the code
     * @date 2021/10/15 8:55
     */

    public SelGsMesVo selectGs1ById(Integer id);
    /**
     *
     * @Description: 查询所有UDI
     * @param selGsMesVo ai_id
     * @return: java.util.List<com.udi.project.business.pojo.damain.Gs1Udi>
     * @Date: 2021/8/18 17:29
     */
    public List<SelGsMesVo> selectUdi(SelGsMesVo selGsMesVo);

    /**
     *
     * @Description: 查询所有UDI历史信息
     * @param selGsMesVo ai_id
     * @return: java.util.List<com.udi.project.business.pojo.damain.Gs1Udi>
     * @Date: 2021/8/18 17:29
     */
    public List<SelGsMesVo> selectUdils(SelGsMesVo selGsMesVo);
    /**
     * GS1-128编辑
     * @param gs1Data
     [gs1Data]* @return int
     * @author yuxin
     * @creed: Talk is cheap,show me the code
     * @date 2021/10/15 14:10
     */
    public int updateGs1(SelGsMesVo selGsMesVo);

    /**
     * 查询应用标识符
     * @param
     * @return java.util.List<com.udi.project.business.local.gs1.domain.Gs1Data>
     * @author yuxin
     * @creed: Talk is cheap,show me the code
     * @date 2021/10/15 14:28
     */
    public List<Gs1Data> getAi();

    /**
     * 删除gs1-128
     * @param ids
     [ids]* @return int
     * @author yuxin
     * @creed: Talk is cheap,show me the code
     * @date 2021/10/15 15:16
     */
    public int remove(String ids);

    /**
     * 永久删除gs1-128
     * @param ids
    [ids]* @return int
     * @author yuxin
     * @creed: Talk is cheap,show me the code
     * @date 2021/10/15 15:16
     */
    public int delete(String ids);

    /**
     *
     * @Description: 查找可使用的GS1【打印交互】
     * @param
     * @return: java.util.List<com.udi.project.business.excel.daomain.UdiExcel>
     * @Date: 2021/8/17 19:16
     */
    public List<AvailableGs1> selectGS1();

    /**
     *
     * @Description: 查询所有UDI带DI
     * @param id ai_id
     * @return: java.util.List<com.udi.project.business.pojo.damain.Gs1Udi>
     * @Date: 2021/8/18 17:30
     */
    public List<Gs1Udi> selectUdiDi(String id);

    /**
     *
     * @Description: 删除UDI 支持批量
     * @param corp ai_id
     * @return: int
     * @Date: 2021/8/18 17:31
     */
    public String deleteUdi(@Param("corp") List<String> corp);

    /**
     * @Description: 模糊查询di
     * @param name 产品
     * @return: 产品名称，规格型号，di码，di码对应的di_id
     * @Date: 2021/8/20 9:41
     * http://localhost:8080/Gs1Generate/getdi?cpmctymc=产品&ggxh=规格
     */
    public List<BeUsable> getDi(String name);
}
